
part of 'dis_customer_record_cubit.dart';

sealed class DisCustomerRecordState extends Equatable {
  const DisCustomerRecordState();
}

final class DisCustomerRecordInitial extends DisCustomerRecordState {
  @override
  List<Object> get props => [];
}

// 刷新页面
final class DisCustomerRecordRefreshing extends DisCustomerRecordState {
  // 时间戳
  final dynamic timestamp;
  const DisCustomerRecordRefreshing({required this.timestamp});
  @override
  List<Object> get props => [timestamp];
}


final class DisCustomerRecordDataLoading extends DisCustomerRecordState {
  @override
  List<Object> get props => [];
}

final class DisCustomerRecordDataSuccessState extends DisCustomerRecordState {
  final List<DisCustomerRecordBean> disCustomerRecordData;
  DisCustomerRecordDataSuccessState({required this.disCustomerRecordData});
  @override
  List<Object> get props => [disCustomerRecordData];
}

final class DisCustomerRecordDataFailureState extends DisCustomerRecordState {
  final String message;
  DisCustomerRecordDataFailureState({required this.message});
  @override
  List<Object> get props => [message];
}




final class DisCustomerRecordDeleteLoading extends DisCustomerRecordState {
  String disCustomerRecordId;
  DisCustomerRecordDeleteLoading({required this.disCustomerRecordId});
  @override
  List<Object> get props => [disCustomerRecordId];
}


final class DisCustomerRecordDeleteSuccessState extends DisCustomerRecordState {
  String disCustomerRecordId;
  DisCustomerRecordDeleteSuccessState({required this.disCustomerRecordId});
  @override
  List<Object> get props => [disCustomerRecordId];
}

final class DisCustomerRecordDeleteFailureState extends DisCustomerRecordState {
  String message;
  String disCustomerRecordId;

  DisCustomerRecordDeleteFailureState({required this.message, required this.disCustomerRecordId});

  @override
  List<Object> get props => [ message,disCustomerRecordId];
}


final class DisCustomerRecordSaveLoading extends DisCustomerRecordState {
  DisCustomerRecordSaveLoading();
  @override
  List<Object> get props => [];
}

final class DisCustomerRecordSaveSuccessState extends DisCustomerRecordState {
  final List<DisCustomerRecordBean> disCustomerRecordData;

  DisCustomerRecordSaveSuccessState({required this.disCustomerRecordData});
  @override
  List<Object> get props => [disCustomerRecordData];
}

final class DisCustomerRecordSearchCustomerLoading extends DisCustomerRecordState {
  final String customerNo;
  const DisCustomerRecordSearchCustomerLoading({required this.customerNo});
  @override
  List<Object> get props => [customerNo];
}

final class DisCustomerRecordSearchCustomerSuccessState extends DisCustomerRecordState {
  final CustomerBean customerBean;
  final String customerNo;
  const DisCustomerRecordSearchCustomerSuccessState({required this.customerBean, required this.customerNo});
  @override
  List<Object> get props => [customerBean, customerNo];
}

